package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

@TableName("t_ticket")
public class TicketBean implements Serializable {
    /** 编号 */
    @TableId(value = "pk_ticketId",type = IdType.AUTO)
    private Integer ticketId;
    //电影名称
    @TableField("t_movieName")
    private String movieName;
    /** 场次 */
    @TableField("t_seriesNum")
    private String seriesNum;
    /** 电影院名称 */
    @TableField("t_cinema")
    private String cinema;
    /** 排号 */
    @TableField("t_row")
    private String row;
    /** 座位号 */
    @TableField("t_seat")
    private Integer seat;
    /** 状态 */
    @TableField("t_status")
    private String status;

    public TicketBean() {
    }

    public TicketBean(Integer ticketId, String movieName, String seriesNum, String cinema, String row, Integer seat, String status) {
        this.ticketId = ticketId;
        this.movieName = movieName;
        this.seriesNum = seriesNum;
        this.cinema = cinema;
        this.row = row;
        this.seat = seat;
        this.status = status;
    }

    public Integer getTicketId() {
        return ticketId;
    }

    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getSeriesNum() {
        return seriesNum;
    }

    public void setSeriesNum(String seriesNum) {
        this.seriesNum = seriesNum;
    }

    public String getCinema() {
        return cinema;
    }

    public void setCinema(String cinema) {
        this.cinema = cinema;
    }

    public String getRow() {
        return row;
    }

    public void setRow(String row) {
        this.row = row;
    }

    public Integer getSeat() {
        return seat;
    }

    public void setSeat(Integer seat) {
        this.seat = seat;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "TicketBean{" +
                "ticketId=" + ticketId +
                ", movieName='" + movieName + '\'' +
                ", seriesNum='" + seriesNum + '\'' +
                ", cinema='" + cinema + '\'' +
                ", row=" + row +
                ", seat=" + seat +
                ", status='" + status + '\'' +
                '}';
    }
}
